<div class="row single-item " id="post-<?php the_ID(); ?>">
	<div class="col-12 col-md-4">
		<a class="hidden-xs img-cont" href="<?php the_permalink() ?>" title="<?php the_title() ?>">
			<?php 
	    $default_img=get_template_directory_uri()."/default.jpg";
	    if ( has_post_thumbnail() ) { 
	    	the_post_thumbnail(
	    		array(296,296),
	    		array(
	    			'alt'=> trim(
	    				strip_tags(
	    					$post->post_title 
	    					)
	    				),
	    			'class'=>'img-fluid'
	    			)

	    			);
	    } 
	    else {?>
			<img class='img-fluid' src='<?php echo $default_img ?>' alt='<?php the_title(); ?>' width='296'
				height='296' />
			<?php }?>
		</a>
	</div>
	<div class="col-12  col-md-8">
		<div class="post-summary">
			<h2><a href="<?php the_permalink() ?>" title="<?php the_title() ?>" rel="bookmark" target="_blank">
					<?php the_title() ?>
				</a></h2>
			
			<p>
				<?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 100,'……'); ?>
			</p>
			<div class="post-tag">
				<!-- <span>分类：<?php 
				
				$category = get_the_category();//默认获取当前所属分类
				foreach ($category as $key => $value) {
					echo $value->name;
				}
				?></span> -->

				<div class="post-tag-l">
					<?php
						if(get_the_tags()){;
					?>
					<div class="post-tag-main">
						<!-- tags: -->
						<?php
						// var_dump(get_the_tags()) ;
						// the_tags();
						$nums=0;
							foreach (get_the_tags() as $key => $value) {
								if ($nums>0){break;}
								echo '<span class="category_list shenglue">'.$value->name.'  </span>';
								$nums=$nums+1;
							}
						
					?></div>
					<?php
						};
					?>
					<span class="post-info-time"><i
							class="icofont icofont-time"></i>
						<?php the_time('Y-m-d'); ?> 
					</span>
				</div>				

				<!-- <span><i class="icofont icofont-fire"></i>
					<?php setPostViews(get_the_ID()); echo number_format(getPostViews(get_the_ID())); ?>

					
				</span> -->
				<span class="read_more"><a rel="nofollow" href="<?php the_permalink() ?>" target="_blank")> >> 查看更多</a></span>
			</div>
		</div>
	</div>
</div>